package com.ishow.common.exception;

/**
 * 数据库异常
 * 
 * @author chichi
 * @version 1.0
 */
public class DatabaseException extends BaseException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected String code = "900001";

	public DatabaseException() {

	}

	public DatabaseException(String code) {
		if (code != null && !"".equals(code)) {
			this.code = code;
		}
	}

	public DatabaseException(String code, Throwable cause) {
		super(cause);
		this.code = code;
	}

}
